/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.membermsg.entity.MemberMsgTemplate
   Module Description   :

   Date Created      : 2010/12/29
   Original Author   : cut7man
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.membermsg.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author cut7man
 * 
 */
@Entity
@Table(name = "EC_MSG_TEMPLATE")
public class MemberMsgTemplate {
	public enum SEND_TYPE {
		MAIL("1"), SMS("2");
		String value;

		SEND_TYPE(String type) {
			this.value = type;
		}

		public String getValue() {
			return this.value;
		}
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_msg_template")
	@SequenceGenerator(name = "seq_ec_msg_template", sequenceName = "seq_ec_msg_template")
	@Column(name = "TEMP_ID")
	private Long id;
	@Column(name = "TITLE")
	private String title;
	@Column(name = "MAIL_CONTENT")
	private String mailContent;
	@Column(name = "SMS_CONTENT")
	private String smsContent;
	@Column(name = "IS_BONUS", length = 1)
	private String isBonus;
	@Column(name = "IS_COUPON", length = 1)
	private String isCoupon;
	@Column(name = "SUBJECT")
	private String subject;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the mailContent
	 */
	public String getMailContent() {
		return mailContent;
	}

	/**
	 * @param mailContent the mailContent to set
	 */
	public void setMailContent(String mailContent) {
		this.mailContent = mailContent;
	}

	/**
	 * @return the smsContent
	 */
	public String getSmsContent() {
		return smsContent;
	}

	/**
	 * @param smsContent the smsContent to set
	 */
	public void setSmsContent(String smsContent) {
		this.smsContent = smsContent;
	}

	/**
	 * @return the isBonus
	 */
	public String getIsBonus() {
		return isBonus;
	}

	/**
	 * @param isBonus the isBonus to set
	 */
	public void setIsBonus(String isBonus) {
		this.isBonus = isBonus;
	}

	/**
	 * @return the isCoupon
	 */
	public String getIsCoupon() {
		return isCoupon;
	}

	/**
	 * @param isCoupon the isCoupon to set
	 */
	public void setIsCoupon(String isCoupon) {
		this.isCoupon = isCoupon;
	}

	/**
	 * @return the subject
	 */
	public String getSubject() {
		return subject;
	}

	/**
	 * @param subject the subject to set
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}

}
